package com.kaili.db.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.common.exception.BaseExcept;
import com.kaili.pojo.dto.abnormal.EwbAbnormalAddDTO;
import com.kaili.pojo.entity.HsOptEwb;
import com.kaili.pojo.entity.HsOptEwbAbnormal;
import com.kaili.pojo.vo.ArriveEwbVO;
import com.kaili.pojo.vo.ewbAbnormalVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
public interface HsOptEwbAbnormalMapper extends BaseMapper<HsOptEwbAbnormal> {

    void createdEwbAbnormal(HsOptEwbAbnormal hsOptEwbAbnormal) throws BaseExcept;

    ewbAbnormalVO getAbnormalByEwbNo(HsOptEwbAbnormal hsOptEwbAbnormal) throws BaseExcept;

    ewbAbnormalVO queryAbnormalByEwbNo(EwbAbnormalAddDTO hsOptEwbAbnormal) throws BaseExcept;

    int modifyAbnormal(HsOptEwbAbnormal hsOptEwbAbnormal)throws BaseExcept;

    int modifyAbnormals(HsOptEwbAbnormal hsOptEwbAbnormal)throws BaseExcept;

    int deleteAbnormalByEwb(HsOptEwbAbnormal hsOptEwbAbnormal) throws BaseExcept;

    List<ewbAbnormalVO> queryEwbAbnormalList(Page<ewbAbnormalVO> page, Map map) throws BaseExcept;

    ArriveEwbVO getEwbByEwbNo(String ewbNo)throws BaseExcept;

    List<ArriveEwbVO> queryOriginalEwb(Map<String,Object> map) throws BaseExcept;

    List<ewbAbnormalVO> exportAbnormalQueryList(Map map);

    HsOptEwb getEwbcheckVo(Map map)throws BaseExcept;
}
